b2ac42052001057ac6e5106de107d073f7367ad0,Misc/Pokecube Alternative/src/main/java/pokecube/alternative/container/belt/InventoryPokemon.java,InventoryPokemon,decrStackSize,#number#number#,81
Before Change
@Override
public ItemStack decrStackSize(int index, int count)
{
if (this.getStackInSlot(index) != null)
{
ItemStack itemstack;
if (this.getStackInSlot(index).stackSize <= count)
{
itemstack = this.getStackInSlot(index);
this.setInventorySlotContents(index, null);
this.markDirty();
return itemstack;
}
itemstack = this.getStackInSlot(index).splitStack(count);
if (this.getStackInSlot(index).stackSize <= 0)
{
this.setInventorySlotContents(index, null);
}
After Change
@Override
public ItemStack decrStackSize(int index, int count)
{
if (CompatWrapper.isValid(this.getStackInSlot(index)))
{
ItemStack itemstack;
if (CompatWrapper.getStackSize(this.getStackInSlot(index)) <= count)